
import { signInApi } from './urls';

const fetchUserInfoAction = (data) => ({
  type: 'SIGN_IN',
  payload: data
});
export const signInAction = (data) =>
  dispatch => signInApi(data).then((response) => {
    dispatch(fetchUserInfoAction(response));
    return response;
  });
